{% extends "index.html" %}
{% load mptt_tags %}


{% block content %}
    <div class="widget">
        {% if IS_ADMIN %}<div class="boutons"><a href="/admin/page/section/{{ rubrique.id }}/"></a></div>{% endif %}
    {{ rubrique.content|safe }}
    </div>
    
   {% for section,structure in sections|tree_info %}
   {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %}
   <a href="{{section.path}}">{{ section.title }}</a>
   {% for level in structure.closed_levels %}</li></ul>{% endfor %}
   {% endfor %}
{% endblock %}

{% block admin %}
    <a href="/admin/page/section/">Administration</a>
{% endblock %}
